{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="{% static '/layui/css/layui.css' %}">
    <style>
        body {
            background: #16baaa;
        }
        #container {
            position: absolute;
            top: 0;
            right: 0;
            left: 0;
            bottom: 0;
            margin: auto;
            padding: 50px 30px;
            width: 300px;
            height: 200px;
            background: white;
        }
    </style>
</head>
<body>
    <div id="container">
        <h1>后台管理系统</h1>
        <form class="layui-form" method="post" action="/login/">
            {% csrf_token %}
            <div class="layui-form-item">
                <input type="text" name="username"  class="layui-input" placeholder="请输入用户名" autocomplete="off">
            </div>
            <div class="layui-form-item">
                <input type="password" class="layui-input" name="password" placeholder="请输入密码">
            </div>
            <div class="layui-form-item layui-row">
                <div class="layui-col-xs3">
                    <button class="layui-btn layui-btn-primary">注册</button>
                </div>
                <div class="layui-col-xs3 layui-col-xs-offset6">
                    <button class="layui-btn">登录</button>
                </div>
            </div>
        </form>
    </div>
</body>
</html>